package demo.mapper;

import demo.entity.Transaction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransactionMapper {
	Transaction getTransaction(int id);
	List<Transaction> selectTransactions(@Param("customerName") String customerName, @Param("from") String from, @Param("to") String to);
	List<Transaction> selectTransactionByIDs(List<Integer> IDs);
	List<Transaction> selectTransactionByCustomerId(int customerId);
	int add(Transaction transaction);
	int deleteCustomer(int id);
}
